<?php
class Article_tag_relation extends CActiveRecord
{
	public static function model($className = __CLASS__)
	{
		return parent::model($className);
	}
	
	public function tableName()
	{
	    return strtolower(get_class($this));
	}
	public function relations()
	{
		return array(
			'article'=>array(self::BELONGS_TO,'Article','article_id'),
			'tag'=>array(self::BELONGS_TO,'Tag','tag_id'),
		);
	}
}